<html lang="en">
<head>
	<?php
		$this->load->library('session');
	?>
 	<meta charset="utf-8" />
  	<title>Baby Shop</title>
	<link rel="stylesheet" href="<?php echo(CSS.'style.css'); ?>">
</head>
<body>
<div id="header">
<div id="up">
</div>
  <div id="place-nav">
	<ul id="nav">
		<li class="active">
		<li><a href="http://localhost/BabyShop/home.php">Product</a></li>
		<li><a href="#">Transaction</a>
		<ul>
        <li><a href="#">Sale</a></li>
        <li><a href="#">Purchase</a></li>
      </ul>
    </li>
    <li><a href="#">Report</a>
    	<ul>
        <li><a href="#">Sale Report</a></li>
        <li><a href="#">Purchase Report</a></li>
        <li><a href="#">income Statment Report </a></li>
       </ul>
     </li>
  </li>
  </div>
</div>
<div id="main-content">
	<center>
		<form action="<?php echo base_url();?>index.php/insert/insert_to_db" method="post">
			<table>
				<tr>
					<td>Product Name</td>
					<td><input type="text" name="productname"/></td>
				</tr>
				<tr>
					<td>Sale Price</td>
					<td><input type="text" name="saleprice"/></td>
				</tr>
				<tr>
					<td>Purchase Price</td>
					<td><input type="text" name="purchaseprice"/></td>
				</tr>
				<tr>
					<td>Description</td>
					<td><input type="text" name="description"/></td>
				</tr>
				<tr>
					<td>Image</td>
					<td><input type="text" name="image"/></td>
				</tr>
				<tr>
					<td colspan="2">
						<center>
						<?php
							if(isset($errorinsert)){
								switch($errorinsert){
									case 1 :	echo "Product Name Must Be Filled";
												break;
									case 2 :	echo "Sale Price Must Be Filled";
												break;
									case 3 :	echo "Purchase Price Must Be Filled";
												break;
									case 4 :	echo "Description Price Must Be Filled";
												break;
									case 5 :	echo "Image Must Be Filled";
												break;
									case 6 :	echo "success";
												break;
								}
							}
						?>
						</center>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<center>
							<input type='submit' name="Insert" value="Insert">
						</center>
					</td>
				</tr>
			</table>
		</form>
	</center>
</div>
<div id="footer">
@CopyRigth 2013
</div>
</body>
</html>